package com.lin.filegraph.controller;

import com.lin.filegraph.service.impl.StartRecoveryImpl;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@RestController
public class StartRecoveryController {

    @Resource
    StartRecoveryImpl startRecoveryImpl;

    @GetMapping("/StartRecovery")
    public void StartRecovery() {
        startRecoveryImpl.StartRecovery();
    }

}